rglobiom: An R package to support GLOBIOM analysis
Michiel van Dijk
February 20, 2020
Q1: Who has never used R?

Q2: Who mainly uses R for ggplot2?

Q3: And the rest?

Why R?

What is an R package?
“In R, the fundamental unit of shareable code is the package. A package bundles together code, data, documentation, and tests, and is easy to share with others.” (Wickham, 2015)

Motivation
- High demand for ‘pieces of script’
- Convinced it can make life easier for researchers
- Similar efforts by other model teams, e.g. various MagPIE packages
- Keen to learn how to build an R package
Purpose of rglobiom (to be discussed)
- Provide functions to facilitate GLOBIOM pre/post processing tasks
- Provide documentation and examples on how to do this
- Offer a central location for GLOBIOM related info that is nowhere to be found (e.g. list of simus, fm/dm conversion factors, standard crop names, etc)
- …?
Historical trends & projections

EU NUTS map

GLOBIOM 30 region map

LUID map

We need to decide on:
- Standard location of base maps
- Standard location of OUTPUT_FAO.gdx
- Standard GLOBIOM nomenclature
- Standard scenario columns
Next steps?
- Please try and provide feedback
- Is there anything else that can be added?
Maintenance, updates and extensions
- RProject in the IIASA Github repository
- Easy to extent and generate documentation
Thank you
